<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="../struts_taglib.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  <title>物资管理/葡萄酒</title>
  <%@ include file="../link_script.jsp" %>
  <script src="js/pmis/pmis-wine.js" language="javascript" type="text/javascript"></script>
</head>
<body>
<html:form styleId="list" action="/wine.do">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <%@ include file="wine_button_list.jsp" %>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="8" background="images/tab_12.gif">&nbsp;</td>
        <td><table id="theObjTable" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#b5d6e6">
          <tr>
            <td width="4%" class="tdClass">选择</td>
            <td width="4%" class="tdClass">序号</td>
            <td width="20%" class="tdClass">商品名称</td>
            <td width="8%" class="tdClass">购买日期</td>
            <td width="8%" class="tdClass">生产日期</td>
            <td width="7%" class="tdClass">商店</td>
            <td width="6%" class="tdClass">分类</td>
            <td width="6%" class="tdClass">用途</td>
            <td width="4%" class="tdClass">年数</td>
            <td width="6%" class="tdClass">单价</td>
            <td width="6%" class="tdClass">现存量</td>
            <td width="4%" class="tdClass">状态</td>
            <td width="4%" class="tdClass">结算</td>
            <td width="10%" class="tdClass">常用操作</td>
            <td width="*" class="tdClass">...</td>           
          </tr>
          <logic:notEmpty name="wineList">
          <% int i = 0; %>
            <logic:iterate id="var" name="wineList">
            <% i++; %>
              <tr>
                <c:if test="${var.wineState=='2'}">
                <td class="STYLE12"><input type="checkbox" name="ids" value="${var.wineID}" /></td>
                <td class="STYLE12"><%=i %></td>
                <td class="STYLE11">&nbsp;<bean:write name="var" property="wineName" /></td>
                <td class="STYLE12"><bean:write name="var" property="wineDate" /></td>
                <td class="STYLE12"><bean:write name="var" property="productionDate" /></td>
                <td class="STYLE11">&nbsp;${var.shopName }</td>
                <td class="STYLE12"><c:if test="${var.wineType=='1'}">白酒</c:if>
                <c:if test="${var.wineType=='2'}">红葡萄酒</c:if>
                <c:if test="${var.wineType=='3'}">白葡萄酒</c:if>
                <c:if test="${var.wineType=='4'}">啤酒</c:if>
                <c:if test="${var.wineType=='5'}">保健酒</c:if>
                <c:if test="${var.wineType=='9'}">其它</c:if></td>
                <td class="STYLE12"><c:if test="${var.wineVariety=='1'}">标准版</c:if>
                <c:if test="${var.wineVariety=='2'}">小酒版</c:if>
                <c:if test="${var.wineVariety=='3'}">收藏酒</c:if></td>
                <td class="STYLE12"></td>
                <td class="STYLE13">&nbsp;${var.winePrice}￥&nbsp;</td>
                <td class="STYLE12"></td>
                <td class="STYLE12"><a href="wine.do?method=updateWineState&wineID=${var.wineID}&state=quehuo&pageNum=${pageNum }">缺货</a></td>
                <c:if test="${var.winePay=='0'}">
                <td class="STYLE12">已结</td>
                <td class="STYLE12"><a href="wine.do?method=detailWine&wineID=${var.wineID}">明细</a>&nbsp;结算</td>
                </c:if>
                <c:if test="${var.winePay=='1'}">
                <td class="STYLE12"><font color=red>未结</font></td>
                <td class="STYLE12"><a href="wine.do?method=detailWine&wineID=${var.wineID}">明细</a>&nbsp;<a href="wine.do?method=payWine&wineID=${var.wineID}">结算</a></td>
                </c:if>
                <td class="STYLE11">&nbsp;&nbsp;</td>
                </c:if>
                <c:if test="${var.wineState=='1'}">
                <td class="STYLE22"><input type="checkbox" name="ids" value="${var.wineID}" /></td>
                <td class="STYLE22"><%=i %></td>
                <td class="STYLE21">&nbsp;<bean:write name="var" property="wineName" /></td>
                <td class="STYLE22"><bean:write name="var" property="wineDate" /></td>
                <td class="STYLE22"><bean:write name="var" property="productionDate" /></td>
                <td class="STYLE21">&nbsp;${var.shopName }</td>
                <td class="STYLE22"><c:if test="${var.wineType=='1'}">白酒</c:if>
                <c:if test="${var.wineType=='2'}">红葡萄酒</c:if>
                <c:if test="${var.wineType=='3'}">白葡萄酒</c:if>
                <c:if test="${var.wineType=='4'}">啤酒</c:if>
                <c:if test="${var.wineType=='5'}">保健酒</c:if>
                <c:if test="${var.wineType=='9'}">其它</c:if></td>
                <td class="STYLE22"><c:if test="${var.wineVariety=='1'}">标准版</c:if>
                <c:if test="${var.wineVariety=='2'}">小酒版</c:if>
                <c:if test="${var.wineVariety=='3'}">收藏酒</c:if></td>
                <td class="STYLE22"><bean:write name="var" property="wineYear" />年</td>
                <td class="STYLE23">&nbsp;${var.winePrice}￥&nbsp;</td>
                <td class="STYLE22"><b>${var.repertoryNum}</b>瓶</td>
                <td class="STYLE42"><a href="wine.do?method=updateWineState&wineID=${var.wineID}&state=cunhuo&pageNum=${pageNum }">存货</a></td>
                <c:if test="${var.winePay=='0'}">
                <td class="STYLE22">已结</td>
                <td class="STYLE22"><a href="wine.do?method=detailWine&wineID=${var.wineID}">明细</a>&nbsp;结算</td>
                </c:if>
                <c:if test="${var.winePay=='1'}">
                <td class="STYLE22"><font color=red>未结</font></td>
                <td class="STYLE22"><a href="wine.do?method=detailWine&wineID=${var.wineID}">明细</a>&nbsp;<a href="wine.do?method=payWine&wineID=${var.wineID}">结算</a></td>
                </c:if>
                <td class="STYLE21">&nbsp;&nbsp;</td>
                </c:if>
              </tr>
            </logic:iterate>
          </logic:notEmpty>
        </table></td>
        <td width="8" background="images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <%@ include file="../page.jsp"%>
</table>
</html:form>
</body>
</html>

